<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    html,body{
      margin: 0;
      padding: 0;
    }
    body{
      background-color: lightblue;
    }
    div {
      position: relative;
      width: 30vmin;
      height: 30vmin;
      line-height: 30vh;
      text-align: center;
      font-size: 30px;
      background: #fff;
      margin: 30vmin auto;
    }

    div::before,
    div::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: -1;
    }

    div::before {
      content: ':before';
      font-size: 30px;
      text-align: center;
      line-height: 30vh;
      transform-origin: 0 50%;
      transform: translate(100%, 0) skewY(45deg) scaleX(.6);
      background: linear-gradient(90deg, rgba(0, 0, 0, .3), transparent);
    }

    div::after {
      content: ':after';
      font-size: 30px;
      text-align: center;
      line-height: 30vh;
      transform-origin: 0 0;
      transform: translate(0%, 100%) skewX(45deg) scaleY(.6);
      background: linear-gradient(180deg, rgba(0, 0, 0, .3), transparent);
    }

    section{
      background-color: green;
      width: 300px;
      height: 200px;
      margin: 200px  auto;
      transition: all 3s ease;
    }
    section:hover{
      /* transform: skew(45deg); */
      /* transform: skewX(45deg); */
      transform: skewY(45deg);
    }
  </style>
</head>

<body>
  <div>Web秀</div>

  <section>
    SKEW
  </section>
</body>

</html>